//
//  sendPersonSetSign.m
//  tcpoctest
//
//  Created by gump on 5/23/13.
//  Copyright (c) 2013 gump. All rights reserved.
//

#import "sendPersonSetSign.h"

@implementation sendPersonSetSign

-(void)SendSetSign:(NSString *)strsign
{
    if (![self CheckLogin]) {
        return;
    }
    
    const char *signchar = [strsign UTF8String];
    int signlength = strlen(signchar) > 64 ? 64:strlen(signchar);
    
    int l = CHAR_PL * 2 + signlength + INT_PL;
    
    [self initDataByLength:l];
    
    [sb WriteFixedLengthString:strsign withLength:signlength];
    
    [self Package];
}

@end
